package com.cn.config.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.cloud.config.server.EnableConfigServer;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@Configuration
@RestController
@EnableAutoConfiguration
public class TestController {

    //@Value("${config.name}")
    String name = "World";

    @GetMapping("test")
    public String test(){
        return "Hello " + name;
    }
}
